/**
 * Created by IntelliJ IDEA.
 * User: egriffin
 * Date: Sep 11, 2008
 * Time: 8:05:17 AM
 * To change this template use File | Settings | File Templates.
 */
public class problem5 {
    public static void main(String[] args) {
        int first = 1;
        int last = 20;

        int number = last + 1;
        boolean yes = true;
        do {
//            System.out.println("Testing " + number);
            for (int i = first; i <= last; i++) {
                if (number % i != 0) {
//                    System.out.println(number + " is not evenly divisible by " + i);
                    yes  = false;
                    break;
                }
            }
            if (yes) {
                break;
            } else {
                number++;
                yes = true;
            }
        } while (true);

        System.out.println(number);
    }
}
